package com.mgm.conversion.service;

import java.math.BigDecimal;
import java.util.List;

import com.mgm.pojo.ConversionInfo;

public interface ConversionService {
	
	int save(ConversionInfo conversionInfo);
	
	BigDecimal selectTotalCap(String offerid);
	
	BigDecimal selectDailyCap(String offerid);
	
	BigDecimal selectTotalCapByAffId(String offerid, String affid);
	
	BigDecimal selectDailyCapByAffId(String offerid, String affid);
	
	long countByCode(String offerid, String affid, String code);
	
	int update(ConversionInfo conversionInfo);
	
	List<ConversionInfo> findByTid(String tid);

}
